package com.hyt.it.ogt.ks.model.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 移动端设备设置参数
 * @author 刘恒活
 * @since 2020-05-15
 */
@Data
@Builder
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value="移动端设备设置参数", description="移动端设备设置参数")
public class MobileDeviceParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "考试ID")
    private String examId;

    @ApiModelProperty(value = "考生ID")
    private String userId;

    @ApiModelProperty(value = "静音状态(false:未开启，true:开启)")
    private Boolean muteState;

    @ApiModelProperty(value = "飞行模式是否开启(false:未开启，true:开启)")
    private Boolean flyModeState;

    @ApiModelProperty(value = "静音状态最后一次提醒时间", hidden = true)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss" , timezone="GMT+8")
    private LocalDateTime muteUpdateDate;

    @ApiModelProperty(value = "飞行模式状态最后一次提醒时间", hidden = true)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss" , timezone="GMT+8")
    private LocalDateTime flyModeUpdateDate;

    @ApiModelProperty(value = "离线状态最后一次提醒时间", hidden = true)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss" , timezone="GMT+8")
    private LocalDateTime updateDate;

}
